package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.domain.Book;

import java.util.List;
//查看方法的快捷键 Ctrl+O
public interface IBookService extends IService<Book> {

    //以下为自定义方法
    boolean save(Book book);

    boolean update(Book book);

    boolean delete(Integer id);

    Book selectById(Integer id);

    List<Book> getAll();

    IPage<Book> getPage(Integer currentPage,Integer pageSize);

    IPage<Book> getPage(Integer currentPage, Integer pageSize, Book book);
}
